#include<stdio.h>

int cmp(void* a,void* b)
{
	return *(int*)a-*(int*)b;
}

int main()
{
	int n=0;
	while(scanf("%d",&n)!=EOF)
	{
		int num[n];
		for(int i=0;i<n;i++)
		{
			scanf("%d",&num[i]);
		}
		qsort(num,n,sizeof(int),cmp);
	}
	return 0;
}
